<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/city.js"></script>
<script src="${staticServer}/inc/js/htmlfilter.js"></script>
<script src="${staticServer}/inc/js/model_resp.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<style type="text/css">
#statelist label {
	display: block;
	float: left;
	width: 120px;
}
</style>
<script>
function submit(){

	var startTime = $("#stardate").val();
	var endTime = $("#enddate").val();

	window.location.href="${contextPath}/statis/system_reception_statis.htm?startTime="+startTime+"&endTime="+endTime;
}
	
</script>
</head>

<body>
<input type="hidden" id="keyname" value="">
<input type="hidden" id="traId" value="">
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>资源统计管理</li>
			<li>&gt;</li>
			<li class="current">咨询师接待统计</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">
		</div>
		<table class="form_table">
			<tr>
				<td>
					<div style="overflow: hidden;">
						<label><b>查询条件：</b></label>
						<input type="text" id="stardate" size="13" rel="DATE::Y-m-d" value="${startTime}" readonly="readonly" class="DatePicker_Icon">
						<input type="text" id="enddate" size="13" rel="DATE::Y-m-d" value="${endTime}" readonly="readonly" class="DatePicker_Icon">
						<input type="button" value=" 查 询 " onclick="submit()" />
						<form action="${contextPath}/oa/exportAjaxExcel.htm" method="post" id="form2">
						<input type="submit" id="exportExcel" name="exportExcel" value="Excel导出"/>
						</form>
					</div>
				</td>
			</tr>
		</table>
		<div class="table2excel">
		<table>
			<tr class="fields">
				<th>课程顾问</th>
				<th>校区</th>
				<th>带教老师</th>
				<th>新增业绩</th>
				<th>接待测评量</th>
				<th>成单家庭数</th>
				<th>成单率</th>
				<th>新增业绩/<br/>接待测评量</th>
				<th>市场新增业绩</th>
				<th>市场接待测评量</th>
				<th>市场成单家庭数</th>
				<th>市场成单率</th>
			</tr>
			
			<tbody id="datas">
			<#if list??>
				<#list list?sort_by("rates")?reverse as list>
					<tr class="even_row">
						<td align="center" class="stress">${list.nickname}</td>
						<td align="center">${list.off_name}</td>
						<td align="center">${list.con_name}</td>
						<td align="center">${list.feisum}</td>
						<td align="center">${list.zonrece}</td>
						<td align="center">${list.feizon}</td>
						<td align="center">${list.feichenrate}</td>
						<td align="center">${list.sumrate}</td>
						
						<td align="center">${list.shisum}</td>
						<td align="center">${list.zonear}</td>
						<td align="center">${list.zonchen}</td>
						<td align="center">${list.chenrate}</td>
					</tr>
				</#list>
			</#if>
			<tr class="even_row">
						<td align="center" class="stress">汇总</td>
						<td align="center"></td>
						<td align="center"></td>
						<td align="center" class="stress">${mary_sum}</td>
						<td align="center" class="stress">${mary_zon}</td>
						<td align="center" class="stress">${mary_fei}</td>
						<td align="center"></td>
						<td align="center"></td>
						<td align="center" class="stress">${mary_sum1}</td>
						<td align="center" class="stress">${mary_zonear}</td>
						<td align="center" class="stress">${mary_zonshichang}</td>
						<td align="center"></td>
					</tr>
			</tbody>
		</table>
		</div>
	</div>
	<div id="pager" style="width: 820px;">
	<ul id="pagination">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${currpage-1}&startTime=${startTime}&endTime=${endTime}">上一页</a></li>
					</#if>
					
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${index_up}&startTime=${startTime}&endTime=${endTime}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${index_up}&startTime=${startTime}&endTime=${endTime}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${pagetotal}&startTime=${startTime}&endTime=${endTime}">${pagetotal}</a></li>  
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=1&startTime=${startTime}&endTime=${endTime}">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${index_up}&startTime=${startTime}&endTime=${endTime}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${pagetotal}&startTime=${startTime}&endTime=${endTime}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=1&startTime=${startTime}&endTime=${endTime}">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${index_up}&startTime=${startTime}&endTime=${endTime}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
			
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/statis/system_reception_statis.htm?currPage=${currpage+1}&startTime=${startTime}&endTime=${endTime}">下一页</a></li>
		</#if>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	<div class="emptyline"></div>
	
</body>
</html>